<template>
  <div id="bottomRight">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <icon name="chart-area" class="text-icon"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2">汽车排行</span>
          <div class="decoration2">
            <dv-decoration-2 :reverse="true" style="width:5px;height:6rem;" />
          </div>
        </div>
      </div>
      <div class="row_list">
        <ul class="car_rank"  style="width: 100% ;height: 420px;overflow: auto">
          <li style="font-size: 20px;font-weight: bold;">
            <div>销售排名</div>
            <div>图片</div>
            <div>汽车信息</div>
            <div>销售价格</div>
            <div>销售趋势</div>
            <div>保修时间</div>
            <div>上市时间</div>
          </li>
          <li  v-for="car in carData" v-bind:key="car.rank">
            <div class="list_index">{{car.rank}}</div>
            <div class="list_img"><img :src="car.carImg" style="height: 100%;width: 100%;"></div>
            <div style="font-size: 16px;line-height: 30px;margin-top: 10px;">
              <p>{{car.carName}}</p>
              <p>{{car.brand}}/{{car.manufacturer}}</p>
            </div>
            <div style="font-size: 18px;line-height: 30px;margin-top: 25px;">{{car.price}}万元</div>
            <div style="font-size: 18px;line-height: 30px;margin-top: 25px;">{{car.saleVolume}}</div>
            <div style="font-size: 18px;line-height: 30px;margin-top: 25px;">{{car.insure}}</div>
            <div style="font-size: 18px;line-height: 30px;margin-top: 25px;">{{car.marketTime}}</div>

          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
// import BottomRightChart from "@/components/echart/bottom/bottomRightChart";
export default {
  data(){
    return {
      carData:''
    }
  },
  components: {
    //BottomRightChart
  },
  async mounted () {
    const res = await this.$http.get('myApp/bottomRight')
    this.carData = res.data.carData
  },
};
</script>

<style lang="scss" class>
$box-height: 520px;
$box-width: 100%;
#bottomRight {
  padding: 14px 16px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 30px;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  //下滑线动态
  .decoration2 {
    position: absolute;
    right: 0.125rem;
  }
  .chart-box {
    margin-top: 16px;
    width: 170px;
    height: 170px;
    .active-ring-name {
      padding-top: 10px;
    }
  }
  //列表
  .row_list {
    list-style: none;
    .car_rank::-webkit-scrollbar {
      display: none;
    }
  }
  .car_rank li{
    display: grid;
    -ms-grid-columns: 100px 150px 180px 120px 120px 110px 100px;
    grid-template-columns: 100px 150px 180px 120px 120px 110px 100px;
    cursor: pointer;
    margin-left: 23px;
    text-align: center;
    line-height: 30px;
  }
  .car_rank .list_index{
    font-size: 21px;
    line-height: 70px;
    font-weight: bold;
    margin-top: 15px;
  }

}


</style>